<!-- 公告 -->
<div class="panel panel-default">
    <div class="panel-heading">
        <span class="title">公告</span>
    </div>
    <div class="list-group">
        {php}
            $data = \app\content\model\Content::where(['status'=>1,'channel_id'=>'8']) -> limit(4) -> order('sort desc,id desc') -> select();
        {/php}
        {foreach name="data" item="vo" }
            <a href="{$vo.url}" class="list-group-item"> <strong>◀):</strong>&nbsp;&nbsp;{$vo.shorttitle}</a>
        {/foreach}
    </div>
</div>
<!-- 推荐文章 -->
<div class="panel panel-default">
    <div class="panel-heading">
        <span class="title">推荐</span>
    </div>
    <div class="list-group">
        {php}
            $data = new \app\content\model\Content();
            $data = $data -> attrlist('推荐',4);
        {/php}
        {foreach name="data" item="vo" }
            <a href="{$vo.url}" class="list-group-item">{$vo.title|mb_substr=0,16}</a>
        {/foreach}
    </div>
</div>
<!-- 联系方式 -->
{if condition="check_app('mbzs')"}
<div class="panel panel-default">
    <div class="panel-heading">
        <span class="title">联系我们</span>
    </div>
    <div class="panel-body">
        {php}
        $a=new \app\content\model\Channel;
       $b=$a->where('name','contactus')->find();
       $c=$b->body;
echo html_entity_decode($c
);
        {/php}
        
    </div>
</div>
{/if}